package com.vinjune.algorithm.topological;


/**
*@author 作者：zhangwenjun
*@version 创建时间：2015年12月9日 下午5:23:05
*类说明
*/

public class TopologicalSortTest {
	
	public static void main(String[] args)
	   {
	       int[][] graph={{0,1,2,3,},{2,},{1,1,4,},{2,4,},{3,},{0,3,4,},};
	       int[] list=new int[graph.length];;
	       TopologicalSort topologicalSort=new TopologicalSort();
	       topologicalSort.input(graph);
	       list=topologicalSort.getList();
	       for(int l : list){
	           System.out.print(l+" ");
	       }
	   }

}


